<?php
namespace app\user\model;
use think\Model;

class User extends Model
{
    protected $table = 'app_user';// 定义表名
	protected $pk = 'id';// 定义主键名
	protected $type = [
        'status'    =>  'integer',
        'sex'    =>  'integer',
    ]; // 类型自动转换
    
}